myApp_.onPageInit('seller_goods_list', function () {
    SUPPLY_GOODS_LIST.set_status(1);//
    SUPPLY_GOODS_LIST.load_list();
});

SUPPLY_GOODS_LIST = {};
SUPPLY_GOODS_LIST.IS_APPEND = 0;
SUPPLY_GOODS_LIST.param = {
    status: 1,
    page: 1
};
SUPPLY_GOODS_LIST.__INIT__ = function () {
    mainView.router.load({
        url: "src/seller/goods/list.html",
    });
};
SUPPLY_GOODS_LIST.load_list = function () {
    var url = url_('addons/execute/seller-App-get_seller_goods');
    request_(url,
        SUPPLY_GOODS_LIST.param,
        function (d) {
            if (d.code == 0) {
                SUPPLY_GOODS_LIST.fill_list(d.data);
            }
        }
    );
}
SUPPLY_GOODS_LIST.set_status = function (status) {
    SUPPLY_GOODS_LIST.IS_APPEND = 0;
    SUPPLY_GOODS_LIST.param.page = 1;
    SUPPLY_GOODS_LIST.param.status = status;
    SUPPLY_GOODS_LIST.load_list();
    $(".select_list .tab-link").removeClass("active");
    $(".select_list .tab-link[status='"+SUPPLY_GOODS_LIST.param.status+"'").addClass("active");
}
SUPPLY_GOODS_LIST.inc_page = function () {
    SUPPLY_GOODS_LIST.IS_APPEND = 1;
    SUPPLY_GOODS_LIST.param.page++;
    SUPPLY_GOODS_LIST.load_list();
}


SUPPLY_GOODS_LIST.fill_list = function (context) {
    $.tpl({
        url: 'src/seller/goods/list_fill.html',
        elem: "#seller_goods_list",
        context: context,
        append: SUPPLY_GOODS_LIST.IS_APPEND,
        after: function (param) {
            console.log(param)
        }
    });
}